例文
- もっと例文: 1 2 3
- Two kinds of locks are offered : shared locks and exclusive locks.
- As with exclusive locks, these shared locks should be held for the least time possible.
- To acquire a shared lock, a process must wait until no processes hold any exclusive locks.
- Shared locks are sometimes called " read locks " and exclusive locks are sometimes called " write locks ".
- If an exclusive lock is found next on the queue, it must wait until all shared locks have been released.